import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:vape_xe/utils/utils.dart';

class InnerContainerWidget extends StatelessWidget {
  final Widget? child;
  final EdgeInsetsGeometry? margin;

  const InnerContainerWidget({
    super.key,
    this.child,
    this.margin
  });

  @override
  Widget build(BuildContext context) {
    return Stack(
      alignment: AlignmentDirectional.center,
      children: [
        Container(
          margin: margin ?? EdgeInsets.symmetric(horizontal: 32.w),
          height: 56.h,
          decoration: BoxDecoration(
            color: Colors.white10,
            borderRadius: 12.radius,
          ),
        ),
        Container(
          margin: margin ?? EdgeInsets.symmetric(horizontal: 32.w),
          height: 56.h,
          decoration: BoxDecoration(
            borderRadius: 12.radius,
            boxShadow: [
              BoxShadow(
                color: Colors.black.withOpacity(.2),
                offset: const Offset(0, 0),
                blurRadius: 12,
                spreadRadius: 5,
              ),
            ],
          ),
          child: child,
        ),
      ],
    );
  }
}